vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The Ultimate Quote Hack!! (https://vborg.vbsupport.ru/showthread.php?t=38906)

KuraFire 06-02-2002 10:38 PM

Change this query in index.php

SELECT COUNT(id) AS usertotal FROM quote WHERE ok='Y'

to:

SELECT COUNT(*) AS usertotal FROM quote WHERE mod='Y'

and try again?

Russ 06-02-2002 11:48 PM

Removed -0 I'm silly.

KuraFire 06-03-2002 01:52 PM

Quote:

Originally posted by Russ
We edited this hack ALOT on our site and now it's alot more managable by the Admins.
You're confusing my hack with Lesane's. Mine is perfectly manageable.

Quote:

Originally posted by Russ
* Allow approval of quotes from one link on the Admin list, without going into the quote, checking yes, and hitting ok.
You don't have to do that with my hack. If you see a quote that needs editing, you edited, if not, you have to hit only 1 single button to moderate all new quotes at once.

So, again, I think you're looking at Lesane's hack...

Quote:

Originally posted by Russ
* Allows viewing of only the quotes that need approving on the admin list, as well as still the full list.
So does mine, no need to alter that....

Quote:

Originally posted by Russ
* Displays how many quotes are waiting approval directly underneath the quote on the frontpage - to admins only.
Erm, I have that for admin/index.php - can be added just as easily to ForumHome, of course...

Quote:

Originally posted by Russ
That, and we've made it's size alot smaller because I didn't think it needed an entire category box for it :) - check it out on http://forums.buffydownunder.com

Attached a screenie of the admin versions...

And now I'm Quite sure that you are using Lesane's hack, since you're listing 577 quotes on a SINGLE page (that takes quite a while to load) whereas I have a searchable, paged database with an index by letter.

Sorry, but even your hacked version of Lesane's hack is something I wouldn't trade in for my own, Ever. And I really don't see how it's "more manageable" than my hack. I Really don't see it, all I see is that mine is still better, no offense.

And what do you mean by "an entire category box" ???

Russ 06-04-2002 01:55 AM

gulp :) wwhoopsies,
[high]* Russ rushes to remove previous post :)[/high]

Russ 06-04-2002 02:01 AM

OK :)

So now that my attention has been drawn..

any quick way to ditch Lesane's one and install this one?

KuraFire 06-04-2002 08:57 AM

well, just remove the files and file-hacks from Lesane's hack, and install this one including the 2nd post addition And the Admin Panel Extra hack that is on the first page in this thread. However, you'll want to preserve your current quotes table, so you'll have to modify that.

Russ 06-04-2002 09:07 AM

hmm, well that'll take too long :)

Thanks though.

KuraFire 06-04-2002 09:18 AM

Your loss man. :p

Warlord 06-06-2002 06:37 AM

*Hits the install button*

Nice hack bro. :D

KuraFire 06-10-2002 12:22 PM

Okay, I'm gonna put it like this:

if you want the user-tracking add-on (to see which user added what quote(s), and the total being visible in their profile), please e-mail me at:

faruk AT kurafire DOT com

and do not, I repeat, do NOT PM me about it. I can hardly keep track of PM's, let alone any requests made in PM's.

I have one counter-demand though: I'll need to see your board before I send you the add-on instructions. So please include your board URL in the mail.

Marshalus 06-19-2002 07:25 AM

Question, I have vBPortal on my site, and want to run this hack on all pages. I added the required code to global.php, but it doesn't display on vBPortal pages, just normal vBulletin pages.

Anyone know what I need to edit in vBPortal to get this to work?

http://www.federationstudios.net (no quotes)
http://www.federationstudios.net/forums (with quotes)

KuraFire 06-20-2002 08:42 PM

at the end of the first page we already encountered problems with that... :/

Don't think that he (whoever he was - can't remember right now) managed to get it working, though....

Bro_Joey_Gowdy 06-23-2002 04:28 AM

This hack works great !!


First go here and see the problem :

(note: you may need to refresh until you see the longer quotes)


http://www.joeygowdy.com/forum/


How can I get them to 'carriage return' or 'break' occasionally ?

Not sure - but I believe the error is on my behalf -

I edited the header template and changed a few things around to display the quotes on the top right side of the forum.

(note: listed in bold is what I modified)

Quote:

<!-- logo and buttons -->
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="left" background="http://www.joeygowdy.com/forum/images/menu_background.gXX"><a href="index.php?s=$session[sessionhash]"><img src="http://www.joeygowdy.com/forum/images/logo_JesusBridgestheGap.gif" border="0" alt="$bbtitle"></a></td>
<td valign="bottom" align="right" nowrap background="http://www.joeygowdy.com/forum/images/menu_background.gif">
<center><font face="verdana,arial,helvetica" size="1" class="sf"> <BR><b><font color="#red">$thequote $thequoter </font></b><br><br><br><br><br><br><br></font></center>


<!-- toplinks -->
$register_or_controlpanel
<a href="calendar.php?s=$session[sessionhash]"><img src="http://www.joeygowdy.com/forum/images/top_calendar.gif" alt="Calendar" border="0"></a>
<a href="memberlist.php?s=$session[sessionhash]"><img src="http://www.joeygowdy.com/forum/images/top_members.gif" alt="Find other members" border="0"></a>
<a href="misc.php?s=$session[sessionhash]&action=faq"><img src="http://www.joeygowdy.com/forum/images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
<a href="search.php?s=$session[sessionhash]"><img src="http://www.joeygowdy.com/forum/images/top_search.gif" alt="Search" border="0"></a>
<a href="index.php?s=$session[sessionhash]"><img src="http://www.joeygowdy.com/forum/images/top_home.gif" alt="Home" border="0"></a>
<!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="http://www.joeygowdy.com/forum/images/top_logout.gif" alt="Logout" border="0"></a> -->
&nbsp;
<!-- /toplinks -->
</td>
</tr>
</table>
<!-- /logo and buttons -->

<!-- content table -->
<table bgcolor="#FFFFFF" width="100%" cellpadding="6" cellspacing="0" border="0">
<tr>
<td>

<!-- kaotixVIBEinc -->
<script>
<!--
function jumpPage(newLoc) {
newPage = newLoc.options[newLoc.selectedIndex].value
if (newPage != "") { window.location.href = newPage }
}
// -->
</script>
<!-- /kaotixVIBEinc -->

KuraFire 06-23-2002 06:49 PM

just put <br /> inside the longer quotes wherever you want it to start on a new line.

Bro_Joey_Gowdy 06-23-2002 07:09 PM

Works great !!

Thanks !!

Knew it was an error on my behalf.

:D

Night Owl 06-24-2002 12:44 AM

I originally installed this hack and the addon while running vbulletin 2.2.5. It worked great! Then I upgrade to 2.2.6 and installed vbportal.

So, I reinstalled this hack. The quote list is working, the admin cp quote add section is working (both on vbulletin and vbportal. My ONLY trouble is that the quotes aren't showing. Wugh

Any ideas?

http://www.sybermoms.com/forums/index.php

Here is the link to my vbportal main page:

http://www.sybermoms.com/index.php

KuraFire 06-29-2002 08:07 AM

Where are your quotes to appear? And also, where did you put the quote extraction query? (in which file)

Night Owl 07-03-2002 08:13 AM

OK, I figured out how to make the quotes appear.

However, I have had to restrict who's online access to certain groups on my board because of a security problem. But I want those restricted groups to be able to view the quoter list. How can I change the code to enable that?

Marshalus 07-04-2002 06:34 AM

Did you get it working in vBPortal?

Night Owl 07-04-2002 06:58 AM

I gave up on getting it to work in vbportal. Don't really want it there anyway. But I would really like to be able to let all my members submit quotes, even if they can't view the who's online.

Mathiau 07-07-2002 06:30 PM

hey all

i simply put my quotes in a table, and the words wrap with no probs!

working on adding this add-on to it now :D

http://66.207.199.6/forums/index.php

http://66.207.199.6/matts%20stuff/quotes.gif
(hhe, keep posting that, took me forever to figure out how to make a simple table..lol still a rather newbie to this php stuff)

Code:

<!-- quotes panel -->
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000"  width="95%"

align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0"  width="100%"> 
<tr>
       
        <table cellpadding="4" cellspacing="1" border="1"  width="100%">
<tr id="cat">
        <td bgcolor="#6D1F15" colspan="" border="1" bordercolor="#42130D" width="50%" align="center"> <normalfont color="#FFF788"><b>Random Quotes
</font></b></a></td></normalfont>
</tr>
<tr>
                <td bgcolor="#F1F1F1" colspan="5">
<font face="verdana,arial,helvetica" size="2" align="center" >
<center>
$thequote<br>
$thequoter<br>
</center>
</font>
</td>
</tr>
</table>
</td></tr></table>
<!-- end quotes panel  -->


KuraFire 07-17-2002 08:15 PM

Night Owl, you can just change the permission check in quotelist.php so that ALL users can add quotes, y'know :)

Night Owl 07-18-2002 12:05 AM

aha! Duh. Thank you!. :lol

ForKmaN 07-22-2002 08:45 AM

I was wondering what I need to do to make it so people can see that others are browing the Quotes when they look at the 'Whoose Online' ???

Please? :D

ForKmaN 07-22-2002 09:16 AM

Also, can we make it so its not in Alphabetical order? But isntead in the order they were submited and added?

ForKmaN 07-22-2002 10:13 AM

Heres how i have it setup on my forums.

Combined with the Welcome Panel Hack.

KuraFire 07-22-2002 06:58 PM

Forkman: yes, all is possible.

For making it so that the Who's Online shows it when users are looking at the Quotes List, use FireFly's excellent "Add Who's Online Locations from your Admin Panel" hack - I'm using that and it works great with the quote list.

For making the default order go by ID rather than alphabetical, just find this bit of code (around line 92 in the default quotelist.php):

PHP Code:

  if ($orderby=="") {
    
$orderby="letter,name";
  } 

And replace "letter,name" with "id". That way it'll sort by ID by default. If you want to reverse the order from what you get now, look at the three lines below these in quotelist.php, for they will define your default ORDER DIRECTION.

G'luck! :up:

ForKmaN 07-23-2002 05:06 AM

Thank ye!

Works a charm, where is Fireflys hack? I cant seem to find it .. :(

ForKmaN 07-23-2002 05:24 AM

Found it! :)

Works Well!
Excellent hack!

speedway 09-30-2002 01:35 PM

If anybody is watching this thread I have a question.

What would be the easiest way to add "[All]" to the letter list? I ask because if you select a letter you cannot get back to the entire listing without clicking the link to get to the list in the first place. It would be much easier to use an "all" link.....

Any ideas? :ermm:

Cheers

KuraFire 10-02-2002 09:42 AM

Speedway: just make a template adjustment and put a link to quotelist.php?s=$session[sessionhash] with a linktext "All" or "[all]" or whatever, somewhere in the template of the Quotelist where you want it. :)

GZ_Tanis 10-29-2002 10:50 PM

Kura I REALLY want to add this to our forum but i noticed all your files are php we use php3. Will it still work for me? I dont want to go and add all these and not have it work :)

KuraFire 10-30-2002 10:11 AM

GZ_Tanis: I have no idea at all if it will work. I've never written any php3 code in my life, I started learning it when they just released php 4.0.4; I never bothered to go back since I run my vBulletin on a php 4.1.2 :)

All I can say is try it out but make good, solid, _verified_ (that they work) backups first. You may have to adjust the code though, but I don't know if I can help you with that....

bahamut0 12-14-2002 04:31 PM

hi there i have a problem i think or mabye another templeat mod/hack is interferring with this not sure.

but ill ask anyways.

everything works fine except for the fact that noone can post because the javascript won't pop -up not sure when this happened but a user informed me and i checked it if u try to post says error on page :disappointed: i can add fropm the admin cp and u can still check and veiw all quotes made but u just can't add anymore from the forumhome .

any thoughts on mabye whats stopping the javascript from loading.

KuraFire 12-15-2002 06:47 PM

bahamut, there is no javascript in my hack, you're mixing it up with Lesane's hack.

With my hack, you go to the Quote List and then to Add Quote to add quotes. :p

bahamut0 12-15-2002 10:13 PM

i think mabye i described that wrong :) i ment when u need to post a new qoute u press the link (add a new quote) on the message bar it says javascript: Openquote() when u press it it says error on page.

would another hack or template mod interfere with this. or should i just rehack the whole thing.

KuraFire 12-16-2002 01:14 AM

I don't know where you got that template from, but it AIN'T FROM MY HACK!

My Hack Does Not Include Any Javascript, At All!

so if you have a javascript link to add a quote, it's either LESANE's or you made it up yourself COS IT AIN'T FROM THIS HACK!

bahamut0 12-16-2002 03:39 AM

wow mabye me thinks i should rehack i think i may have added some lines from another hack to this by accd :( ahh well .

tweak 12-18-2002 10:41 PM

I installed this hack but My quotes started to go random on refresh then Stopped???? Now it sits on the same one.

KuraFire 12-19-2002 10:36 AM

No clue how to help that, sorry :)


All times are GMT. The time now is 04:17 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
  • Page Generation 0.01579 seconds
  • Memory Usage 1,831KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete