![]() |
Chen,
Could a template be created that consists of two frames. The top frame would be a frame for a link back to our board. The bottom frame would be the external page that we linked to. Then, instead of calling the refresh to the new page, your hack would refresh to a script that took the link as a parameter, and then displayed the framed page template? Sorry if that is confusing. Amy |
this is a great idea. specially for a VB powered frontpage. you could use an invisible forum and grab the list of threads with a query.
thanks firefly for this cool hack. :) |
FireFly you da king!!
thanx :) |
Never mind, Chen. I got it. :D
Amy |
Great hack this is. I'm using it together with c-prOmpt's excellent hack
Thanks again FireFly. |
Chen:
I added the ability to Edit the Title of the link too using $thread['deletelink'] = "<br>( <a href=\"postings.php?s=$session[sessionhash]&action=deletethread&threadid=$thread[threadid]\"> Delete</a> | <a href=\"postings.php?s=$session[sessionhash]&action=stick&threadid=$thread[threadid]\">Stick | Unstick</a> | <a href=\"postings.php?s=$session[sessionhash]&action=editthread&threadid=$thread[threadid]\"> Edit Title</a> )"; Is there anyway to write this so that when you do post a new thread and use the title to go to a different url where it goes back to the original thread (when you first post it) instead of going to the new link? Parker |
Quote:
} elseif ($visible) { and replace with: } elseif ($visible and $link=='') { |
kippesp:
Thanks. I tried that before but I guess I put it in wrong. It is working great now. Parker |
The ability to make the link a stick would be great. Is that planed?
|
you have horriable install instructions for n00bs.
a readme laying out the steps would really be nice. |
FireFly, I installed this hack correctly but when i create a new thread and fill the url field, actually doesn't happen anything....
:( FoA, the URL text field at first time contains the string \"\" ... is it normal ? Actually, I verified by phpMyAdmin, the thread row has the 'link' field empty. I double-checked in particular the hack applied to newthread.php but everything seems well done... :( Thank you for any help. |
Quote:
As you can see, I used the txt version output of vbhacker procedure... with the known problem of '"\' ... I made the correction to the new template and everything went fine. Probably that double slash/quote created some kind of problem when writing the url into db... Now it's ok. Thanks again. |
Would be good to know how you did that.. because I'm having the same problem.
details :) |
Just figured it out before the PM came from you :)
So here tis. You need to change your newthread_linkoption to this: PHP Code:
|
I just installed the vbhacker version of this and I must have missed something. Where is the box to put the URL in? And where is the delete button for the link? Can someone please tell me what I missed or am missing?
|
Quote:
Same problem here |
ok, fixed!
i found a lil bug, it doesn't update the "new thread" template the hack searches for this line but thats wrong!! PHP Code:
to make this hack work do the following, search for this line in your "new thread" template: PHP Code:
PHP Code:
next open the newly created "newthread_linkoption" template and replace the coding with this: PHP Code:
|
This modification to postings.php will prevent sticking/unsticking
a thread-which-is-a-link from going to the link URL when the stick/unstick action is performed. Find: Code:
eval("standardredirect(\"".gettemplate("redirect_sticky")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");"); Code:
if (empty($threadinfo['link'])) { with this and found it could be eliminated by using session[dbsession] in the URL for when the thread is stuck/unstuck. My forum didn't like me browsing with cookies I guess. |
You lost me here on this one and on the dbsession part. :)
Quote:
|
Quote:
these types of threads. I had an earlier modification to prevent the following: after initially creating the link thread, vB goes to the thread view but is redirected to the link. My preference is to go to the forum view. Firefly for whatever reason didn't use this in his latest update. My last post fixed a similar situation I didn't like. This with regard to sticking/unsticking the link thread. Same scenerio: if I stick an unstuck thread, vB goes to the thread view but is redirected to the link. My code modifications change that to the way I prefer. As far as that last bit, that was too vague--sorry. I don't know if I put the hack in incorrectly or I have a browser problem. But if I am browsing with cookies (where only 's=' without the sessionidi shows up in my address bar), trying to use the stick/unstick link takes me to an error window: Your session appears to be invalid. Click here to create a new session. If I browse without cookies, no error message. But I can eliminate the error all the time with the following code change in forumdisplay.php (taken from Firefly's first post). Code:
$thread['deletelink'] = ''; I was a bit surprised no one has mentioned similar situations. But this would corrected it if they did. |
I've installed it (no problems with the install), but ... well, it hasn't changed anything...
I mean, I go to start a new thread and there isn't any box. Am I dense or just thick? *L* |
Jeremy W. :
Check (post #57) in topic, the fix is posted there |
Great, thanx :)
|
Quote:
PHP Code:
|
I have this installed but get this error. Any ideas?
Thanks Parse error: parse error, unexpected $ in /home2/powerwas/public_html/showthread.php on line 604 |
can i see some screen shots or something?
|
Screen shots? It looks like a thread link, but when you click it, it takes you to whatever the link is. There's nothing to see.....
|
I'm also missing all the content in newthread_linkoption
it's linked from newthread w/ $linkoption and I did all the changes suggested in post #57 of this thead... do I have my permission wrong or something? I'm testing it using the admin account, with nothing showing up.. Thanks for any help |
I installed this hack and it gave me a bunch of errors so I tried to work my way backwards in the hack but decided to freshly install the phps.
Anyway now my thread links link back to the main page and I cant think of how to get them to show the thread anymore :/. I really need help soon because we have some 3000 plus members and people want to use the board. Any help would be appreciated. Im thinking it has to do with the ALTER TABLE thread ADD link varchar(255) NOT NULL part of the hack because when I go to manuel mode it shows up blank. |
Fixed the problem.
-_- it was the forumbits template I forgot to revert .... god I feel like a noob. |
Hello,
does this hacks works with vb 2.3 ? Also, will there be no troubles when updating to 3.0 since this hack alter the database ? Thanks, Sharg |
how can I make a forum id rather then a thread id linkable? So I can make a link kinda like vb.com does in the forums for vb.org and .org does for .com
|
Quote:
This is asked every other day here at vB.org it seems. :) Use the search feature in future. It's easy - when editing a forum, put this in as the Forum Title: </a><a href="http://www.google.com">Click here to go to Google!</a> And the forum will redirect to Google. There is a hack that can do this too. Do a search in Hack Requests for other variations and extensions. |
So does this hack work on 2.2.9 ?
|
Quote:
http://www.vb-host.com/forum/forumdi...?s=&forumid=13 My site uses 2.2.9 and the sticky click here to go to our help desk is a link using this hack Quote:
|
thanks vbhost for the confirmation, will be installing this hack soon. :)
Nice site btw, hope it becomes busy soon :D |
Quote:
|
I just installed this hack but when I create a thread and enter the link information, it take me into the threa I created. I know I did this right and went through all fo the code several times and still I get nothing but entry into the thread I created...
|
Uhh I really am a Noob sorry, how the hell do you install this one, there is no instructions. Sorry if I missed somthing or if this is just a noob question. Please help though thanks ^^.
|
Any update on this??
Possible in 351? |
All times are GMT. The time now is 02:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|