Member Avatar

import web,re,traceback urls=( "/","displaythreads" "/viewthread","displaythreads", "/viewthread/(.*)","displaythread", "/viewthread/(.*)/Vote/(Up|Down)","vote", "/newthread/(.*)","newthread", "/newthread","newthread" ) entries={}###{entryname:{property:value}} entrylength=0 class displaythreads: pass class newthread: template=web.template.frender("newthread.html") default=template("DEFAULT",0) def initialize(): pass def GET(): return default def POST(): data = web.input() try: username,threadname = data.username,data.threadname except: return template(mode) if threadname in entries: return template("Exists") entries[threadname]={"creator":username,"points":0,"totvotes":0} class displaythread: template=web.template.frender('Thread Viewer Template.html') def initialize(): pass def GET(self): return self.template( entrylength, entries.keys(), [value['name'] for value in entries.values()] ) class vote: template=web.template.frender('vote.html') def initialize(): pass def GET(self,thread,vote): try: current=web.cookies().get("Voted:"+thread) except: current="BEING DELETED" #act like it is being deleted if its not there. ######Set cookies and change votes######### ##Removing/Adding an extra vote if it was …

Member Avatar
0
13
Member Avatar

I have written a mysql database using PHP which uses a multi-field form to collect descriptive information about archaeological finds/features etc. Some of the fields are text or medium text in length. It is common when describing things to include references, which frequently now take the form of a url. When entering the descriptive text is there a format where a url like: [url]http://www.arch.org/pdf/23432.pdf[/url] can be entered amongst the rest of the text so that without any intervention it will be displayed as a url link, when the record is displayed, or is it the case that the url would …

Member Avatar
0
4
Member Avatar

I need to update database table fields that contain URLs based on evaluation of the those URLs. Specifically, I need to eliminate the empty the fields of any URL that contains the directory "img_ours", and I need to take any URL that contain UPCs and change the URL formula, but keep the UPCs. So if one image url is (these are just examples) //imagesite.com/images/covers/new/0505/012345678912.gif I need to change it to //www.newimagesite.com/images&client=client&upc=012345678912 Here is the code I have come up with [CODE] $query = "select image_url from sample_content_type"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { $covers = $row['url']; if($covers){ //explodes …

Member Avatar
0
3
Member Avatar

Hello, I was hoping that someone can help me with this. I have this linking list working, but I have one problem, when I click on the link it shows up with the link like this winner.php?service=1&&year=2010 and honorable.php?service=1&&year=2010&award=1 this is for all years not just 2010, and what I need it to do is show winner.php?service=AM&&year=2010 and honorable.php?service=AM&&year=2010&award=Notables I have looked in my db, and the values are correct, so I know that is not the issue. [CODE]<ul> <?php $row['year']='2010'; while($row['year']>'2000') { ?> <li> <?php if($row['service']='AM' && $row['award']='Winner') { ?> <a href="winner.php?service=<?php print $row['service'];?>&year=<?php echo $row['year'];?>"><?php echo $row['year'];?></a> <?php …

Member Avatar
0
4
Member Avatar

Hi, I have a dynamic website using dot-net framework, i want to re-write the urls in a way that urls can become extension less and if i use to server.transfer on custom-error pages to do it, is it harmful for search engines, crawling, indexing and rankings? If Yes, how can i find more details about it, if no then why? I thanks to all of you reading and posting response in advance, please suggest your valuable inputs for same. Thanks, webmaster

0
1
Member Avatar

Hi Everyone, I have submitted SEO URLs in Google WebMasters. Google was indexing in the beginning. But after sometimes, the indexing is gone. Hence I request the forum members help in clarifying whether I need to submit the SEO URLs or the regular URLs to GOOGLE WEBMASTERS. Kindly help. Thanks in advance.

Member Avatar
0
3
Member Avatar

Hi all, I just want to write a simple proxy to redirect client to different URLs. Say all users call the proxy server with the same URL and the proxy server redirect them to different URLs. How can I do such thing, can you please anyone comment on this. Thanks a lot

Member Avatar
0
2

The End.