![]() |
You are responsible for this
http://www.eaforums.com/t6418.html I had to dig long and hard to find it, but it's your hack. :) Amy |
That's my hack? :stupid:
Wait... let me guess. It's a very modified version of something I posted a long time ago, to change the look of the first post in a thread? :D Thanks. :) |
Uhh Amy,
What hack is this? I wouln't mind trying this one out. Actually if it's heavily modified I wouldn't mind trying your version out. ;) Thanks |
the only modification I made is to hardcode in the specifc forums that the hack should apply to. Oh, and I also passed the thread id to the function so that my comment link in the first post would work.
Here's the link Hooper: http://vbulletin.com/forum/showthrea...ght=first+post Amy |
Hi Amy,
Thank you. Very much appreciated. My search wasn't going to well in here... :D |
yeah. It's on the WRONG board. :D (hint firefly)
Amy |
After reading your post Amy as well as FireFly's above, I'm getting the feeling that what you have on your site with this hack isn't much like what Chen posted it to be. When you said "to hardcode" I just thought maybe you were saying that you did quite a bit of change to get the output you did. When you applied the code to specific forums was that too terribly difficult?
I noticed someone say that they had a problem with subforums. I have Announcements and News Announcements SiteNews etc... Basically subforums. The forums that I will most want to use this for is for SiteNews. I'm sure I can get this to work. I really like what you've done with it. Very nice. |
No. To make it for specific forums, I did it the lazy way. In the showthread part, I modified this:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Hope that helps. Amy |
Oh,
Thank You. This is the info I need. I just tried hacking what was in the thread and ended up with 2 parsing errors. :( I'll try again with what you have here. Thanks |
Amy,
Did you also change what he wrote on the bottom of the hack? and also replace PHP:-------------------------------------------------------------------------------- // do posts from ignored users if (!$ignore[$post[userid]]) { eval("\$retval = \"".gettemplate("postbit")."\";"); } else { eval("\$retval = \"".gettemplate("postbit_ignore")."\";"); } -------------------------------------------------------------------------------- with PHP:-------------------------------------------------------------------------------- // do posts from ignored users and create first post if ($isfirst and !$ignore[$post[userid]]) { eval("\$retval = \"".gettemplate("postbit_first")."\";"); } elseif (!$ignore[$post[userid]]) { eval("\$retval = \"".gettemplate("postbit")."\";"); } else { eval("\$retval = \"".gettemplate("postbit_ignore")."\";"); } Thanks Hey Chen.... This is an awsome hack.. Maybe we could do a clean up of the hack in these forums? |
Mine is different than his because I have the hidden posts hack installed.
However, if you don't have that installed, what Chen did should work for you. Amy |
ok,
Well...It's installed and I created a template called postbit_first as he explained. I left it blank and went to check the forums posts that I pointed the new code too, it was also blank. So I must be on the right track correct? I don't even have my posts showing up. There isn't anything in there at all. Now do I copy and alter my postbit template and add that to the postbit_first? Thanks Amy. |
You tested the same way I did. :D
Yes, I copied my postbit template in there, and then modified the hell out of it. :D Amy |
Ok, I did just what I wrote above and copied my postbit to the newly created postbit_first template. Now everything looks as usual. So the hack is using postbit_first template for the desired forumID's I told it to look at.
Now I thought that I would just have a space above my posts for an article. Should I install the space into the newly created postbit_first template? I usually just try these things but with the hack a we bit scattered I thought I'de be on the more cautious side this time. ;) Update this post: We were posting at the same time or there abouts. That is funny what you just wrote. |
[QUOTE]Originally posted by amykhar
You tested the same way I did. :D Yes, I copied my postbit template in there, and then modified the hell out of it. :D Amy |
so when are you going to show off your handy work?
I am dying to see what you do with it. Amy |
As soon as you send me your template so I can figure out what I'm doing..... :D
Read the previous post. I have tears in my eye. |
oops. :Blush:
I'll email you my template. Give me a sec. Amy |
Sent you my site link. .... OhBoy. :D
|
want my showthread template too? :D
Amy |
Don't think we can do that. Policy I think. ... :D
What changes on the showthread can I do to make this work any different than yours? |
I think we can exchange templates. People post styles all the time.
It handles that table alignment problem and stuff that you're still having. Amy |
[QUOTE]Originally posted by amykhar
I think we can exchange templates. People post styles all the time. It handles that table alignment problem and stuff that you're still having. Amy |
nice work...shame I couldnt get it too work with 2.2.0 though :(
|
Bald Bounce, I am using 2.20
Amy |
As long as both of you have licenses you are free to exchange program files. You may not exchange or give them to unlicensed individuals, however.
|
Ok. Thanks Kevin. Can I have all of your files now? :D
|
Trust me you don't want my files. :p
|
I believe it. :D
Hey Kevin, what $call do I make to the db to get number of responses to a given thread? This is for........ Comments ($number of comments) Thanks |
SELECT replycount FROM thread WHERE threadid='xxx';
Replace xxx with the threadid. |
Hmmm. No easy way like "$responses [to this thread]"
Lol..... :D I get the idea but I have no idea where to place the code your talking about. This is for what the topic of the thread is about. I have this hack installed and loving it (Thanks to the Wonderful Amy's help). But I just wanted to have the number of replies posted within the postbit_first template. |
Nope, fraid not. :(
|
:mad:
*Hooper pouts to no avail* |
[QUOTE]Originally posted by amykhar
[...] Oh, and I also passed the thread id to the function so that my comment link in the first post would work. [...] Amy |
Why doesn't $thread[replycount] work? within the postbit_first template?
Any Ideas? |
Now you tell me Chen :)
Amy |
Hey Amy,
Will what he wrote help us if we change some code? |
Hooper, I e-mailed you anyway with what you need before seeing this post.
Anyway, adding $thread to the list of global vars is enough. |
Wow that was easy. I added the $thread to the functions.php and had it working in 1 minute.
Thank you very much Chen. Amy, I forwarded the info to you for your page if you would like it. :) |
Uhm, anyone wanna compile this one and make it easier for us who wanna do it too? The whole process is scattered in two boards. Thanks :D
|
All times are GMT. The time now is 07:45 PM. |
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:
|