Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Adding Links under Information
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

karenafox
Starting Member

USA
18 Posts

Posted - June 22 2011 :  18:20:11  Show Profile  Visit karenafox's Homepage  Reply with Quote
I understand how to create pages that appear under the Information menu header, but what if I want to link to a separate dynamic page vs. a contet page? My client wants to have a twitter feed appear on the news page. I can write the script to pull in a twitter feed, but I can't figure out how to get the News link under Information to link to it.

Karen Fox
[email protected]
NovelTalk.com

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - July 01 2011 :  04:26:36  Show Profile  Reply with Quote
Karen my friend,

u can open this file shopcms.asp, and spot to inside sub routine sub showcontents(newsrs,rc,template,frombox,checkdateflag):

check for this code in the the sub routine :

if newsrs("nurllink")="" or isnull(newsrs("nurllink")) then
HtmlWrite "<li><a href=""shopcontent.asp?type=" & newsrs("messagetype") & """>"& translatelanguage(dbc, "content", "message","contentid", newsrs("contentid"), getmessage("content","contentid",newsrs("contentid"))) &"</a></li>"
else
HtmlWrite "<li><a href="""& newsrs("nurllink") &""">"& translatelanguage(dbc, "content", "message","contentid", newsrs("contentid"), getmessage("content","contentid",newsrs("contentid"))) &"</a></li>"
end if

and i will need you to please update to : -

if newsrs("nurllink")="" or isnull(newsrs("nurllink")) then
if newsrs("messagetype") = "News" then
HtmlWrite "<li><a href=""http://yourtwitterurl.com"">"& translatelanguage(dbc, "content", "message","contentid", newsrs("contentid"), getmessage("content","contentid",newsrs("contentid"))) &"</a></li>"
else
HtmlWrite "<li><a href=""shopcontent.asp?type=" & newsrs("messagetype") & """>"& translatelanguage(dbc, "content", "message","contentid", newsrs("contentid"), getmessage("content","contentid",newsrs("contentid"))) &"</a></li>"
end if
else
HtmlWrite "<li><a href="""& newsrs("nurllink") &""">"& translatelanguage(dbc, "content", "message","contentid", newsrs("contentid"), getmessage("content","contentid",newsrs("contentid"))) &"</a></li>"
end if

remark : PLEASE UPDATE THE http://yourtwitterurl.com TO YOUR CORRECT URL.

Diego.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00