UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Tutorials / How to?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 23-05-2007, 20:03
new member
 
Join Date: May 2007
Posts: 6
Default Viper Guest Book: how to edit link

I'm PHP challenged and am trying to change the wording of "Back to main index" at the top of the Viper Guestbook page to read "Read more guest notes", which I will then point to a page of old guest notes that we have gathered over the years.

You can get to the guestbook here: horsekeeping.com/guestbook-enter.html

When I "View Source" on my browser I can clearly see where the change is to be made in the text of the page html, but in my directory I cannot find an "index.html" or other file tht contains the words "Back to the main index". Can someone please advise me on where to make this change? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 25-05-2007, 20:59
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Isn't it index.php you are looking for?

Hope that helps .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 25-05-2007, 21:57
new member
 
Join Date: May 2007
Posts: 6
Default

Quote:
Originally Posted by DPS Computing View Post
Isn't it index.php you are looking for?

Hope that helps .
Thanks for your reply. That's where I expected to find it, but there is no html markup there and especially no reference to the "Back to main index" that I am looking for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 25-05-2007, 22:15
flesso's Avatar
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,438
Default

Quote:
Originally Posted by klimshelf View Post
Thanks for your reply. That's where I expected to find it, but there is no html markup there and especially no reference to the "Back to main index" that I am looking for.
I've never used Viper Guestbook myself, but I suggest you try looking for file with the name 'header' and similar. That should help you...
__________________
Regards,
Josh Hold

eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!

LDN GIGS - Gig Listings for London

Super Moderator

I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.

I don't bite, honest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 25-05-2007, 22:16
Brian's Avatar
Premium Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 761
Default

Deleted for mistake

Last edited by Brian; 25-05-2007 at 22:17. Reason: :S
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 25-05-2007, 22:27
new member
 
Join Date: May 2007
Posts: 6
Default

Quote:
Originally Posted by flesso View Post
I've never used Viper Guestbook myself, but I suggest you try looking for file with the name 'header' and similar. That should help you...
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:

"header("Content-Type: text/html; charset=".$settings['ENCODING']);"

I have no idea what that code means. I found no standard HTML <HEADER anywhere.

Thanks for you help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 25-05-2007, 22:33
flesso's Avatar
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,438
Default

Quote:
Originally Posted by klimshelf View Post
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:

"header("Content-Type: text/html; charset=".$settings['ENCODING']);"

I have no idea what that code means. I found no standard HTML <HEADER anywhere.

Thanks for you help.
That code you pasted is only outputting meta info...
__________________
Regards,
Josh Hold

eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!

LDN GIGS - Gig Listings for London

Super Moderator

I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.

I don't bite, honest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 25-05-2007, 22:45
new member
 
Join Date: May 2007
Posts: 6
Default

Quote:
Originally Posted by flesso View Post
That code you pasted is only outputting meta info...
Yes, I had a hunch that was not the answer. I am baffled as to where the html code for the main page is located.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 25-05-2007, 22:50
247h's Avatar
Premium Member
 
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
Send a message via AIM to 247h Send a message via MSN to 247h Send a message via Yahoo to 247h
Default

Quote:
Originally Posted by klimshelf View Post
...I cannot find an "index.html" or other file tht contains the words "Back to the main index". Can someone please advise me on where to make this change?
You'll find that in: /public_html/viper/skins/Standard_Skin/lang.inc
line 161: define ( "LANG52" , "Back to main index" );

It's strange you didn't find it in a search ...

Late edit: I see it now! You searched for "Back to THE main index" (even though in your first paragraph you wrote it correctly)!!
__________________
Gadge

Too many nice toys — too little time to play with 'em!

Last edited by 247h; 25-05-2007 at 22:53.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 25-05-2007, 23:18
new member
 
Join Date: May 2007
Posts: 6
Default

Quote:
Originally Posted by 247h View Post
You'll find that in: /public_html/viper/skins/Standard_Skin/lang.inc
line 161: define ( "LANG52" , "Back to main index" );

It's strange you didn't find it in a search ...

Late edit: I see it now! You searched for "Back to THE main index" (even though in your first paragraph you wrote it correctly)!!
247h you are a wizard. Thanks much. Actually, I searched "Back to", "Back", "main", "main index" and none of them showed up, even when I specificall searched the lang.inc file. I guess the Advanced Find and Replace program I was using to search was not going into the .inc files and the Dreamweaver program doesn't recognize .inc extensions.

BTW, how did you find it?

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 25-05-2007, 23:41
247h's Avatar
Premium Member
 
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
Send a message via AIM to 247h Send a message via MSN to 247h Send a message via Yahoo to 247h
Default

Quote:
Originally Posted by klimshelf View Post
...BTW, how did you find it?
I had made a similar change myself (some time ago) when, having put Viper in a Joomla Wrapper, returning to the Main Index was not a hyperlink that was wanted, whereas "Back a page" in Joomla was of far more interest.

How I found it was just a logical process I suppose — if you look at the source of the page you'll see that string is associated with class 'vgblink' and like many other apps that use skins + language files, it seemed fairly sensible to start looking in the skins folders (well, there's only the default one). Spotting the file 'skinMenu.php', I checked the contents and found the following:
PHP Code:
<?php LinkIfBack("<span class='vgbselect' > | </span>{<?php Out(LANG52)?>}","","class='vgblink'")?>
Note: I'll be bl**dy glad when eUKhost fix this vBulletin to allow codes to be displayed correctly! I've added spaces where necessary to 'greater-than' and 'less-than' brackets ...

It then didn't take long to realise that I should look for LANG52 in lang.inc — sometimes you get lucky; sometimes it takes much longer ...
__________________
Gadge

Too many nice toys — too little time to play with 'em!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 25-05-2007, 23:48
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,771
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

This has been sorted.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 25-05-2007, 23:50
247h's Avatar
Premium Member
 
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
Send a message via AIM to 247h Send a message via MSN to 247h Send a message via Yahoo to 247h
Default

Quote:
Originally Posted by eukhost.com View Post
This has been sorted.
No it hasn't!

Late edit: I apologise — I could have sworn it screwed up my entered php code after I previewed it, but having treble-checked it again (including standard code) it seems OK. Thanks for that Mark — you could have left a note of completion in the other thread!
__________________
Gadge

Too many nice toys — too little time to play with 'em!

Last edited by 247h; 21-10-2007 at 15:21. Reason: repair emdashes changed by database update to utf-8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 28-05-2007, 12:17
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Also as note to the earlier "looking for standard HTML code" - I thought everything was PHP in Viper and nothing was done in "standard HTML"?
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 28-05-2007, 12:32
247h's Avatar
Premium Member
 
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
Send a message via AIM to 247h Send a message via MSN to 247h Send a message via Yahoo to 247h
Default

Quote:
Originally Posted by DPS Computing View Post
Also as note to the earlier "looking for standard HTML code" - I thought everything was PHP in Viper and nothing was done in "standard HTML"?
I'm wondering what your point is and to which quote of "looking for standard HTML code" you're referring?
__________________
Gadge

Too many nice toys — too little time to play with 'em!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 28-05-2007, 12:43
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by klimshelf View Post
I found "header" in 12 of the 85 Viper Guestbook files, all in php code. The only one that looked promising was in the index.php file:

"header("Content-Type: text/html; charset=".$settings['ENCODING']);"

I have no idea what that code means. I found no standard HTML <HEADER anywhere.

Thanks for you help.
That is the quote above.

Quote:
Originally Posted by 247h View Post
I'm wondering what your point is and to which quote of "looking for standard HTML code" you're referring?
And I was just making the point that I wasn't aware of any standard html code in Viper so therefore, for future reference, there would be no point in looking for something which I don't think exists!!!

So the point is to help and save time in the future!
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 28-05-2007, 12:59
247h's Avatar
Premium Member
 
Join Date: Nov 2006
Location: Buckingham UK
Posts: 264
Send a message via AIM to 247h Send a message via MSN to 247h Send a message via Yahoo to 247h
Default

With respect David, in this case you're just adding to the confusion, not easing it.

Neither Flesso nor you had any experience of Viper yet you both gave opinions of where klimshelf should be looking and between you, sent him off at a tangent — it's not his fault that he couldn't explain his needs any better.

He was looking for a text string that is plainly evident in the source code of Viper's front page — did either of you check it?

Anyway, he's made the changes now so all's well ...
__________________
Gadge

Too many nice toys — too little time to play with 'em!

Last edited by 247h; 21-10-2007 at 15:22. Reason: repair emdashes changed by database update to utf-8