vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - QuoteIt! - Quote Database (https://vborg.vbsupport.ru/showthread.php?t=135297)

Cap'n Steve 02-27-2007 04:04 AM

I'm getting no permission errors on your quotes page, do you have guests or registered users allowed to view quotes? If you have phpMyAdmin on your server, could you post the contents of your quotes table?

BrettMo 03-02-2007 04:15 AM

Quote:

Originally Posted by Cap'n Steve (Post 1191661)
I'm getting no permission errors on your quotes page, do you have guests or registered users allowed to view quotes? If you have phpMyAdmin on your server, could you post the contents of your quotes table?

Steve, I got it working. It seems that it was that the quotes table was corrupted but when reading the instructions I did not think to rebuild the table because the function was not giving me an permission error. I ran the table fix program and after that I found several messed up records, so dropped all the records and reloaded them. Now it looks great.

Thanks for the great function and the support.

Cap'n Steve 03-02-2007 05:48 AM

That's strange. Do you have any idea what went wrong? MySQL has been having a lot of strange errors lately.

Chadi 03-02-2007 07:53 PM

Can you please explain how to remove the author (who submitted the quote) name and date from the quote template? What code and which template?

Also, how do I remove the delete quote link and edit button?

Basically, I want only the quote/author to show up only.

Chadi 03-02-2007 08:00 PM

I edited the listbit template and got everything going except there is still a big blank gap on the bottom part which I cannot find the proper code to remove to correct that

Code:

<tr><td class="quoterow {$quoteclass}" align="left" id="quote{$quote['quoteid']}-{$globalcounter}">

<p class="quote"<if condition="($quote['userid'] == $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditownquotes']) OR ($quote['userid'] != $vbulletin->userinfo['userid'] AND $quoteitpermissions['caneditotherquotes'])"> ondblclick="editQuote(event, {$quote['quoteid']}, {$globalcounter});return false;"</if>>
<span class="quotetext" id="quotetext{$quote['quoteid']}-{$globalcounter}">{$quote['quote']}</span>
<if condition="!$sidebar">
</if>
</p>

<div class="authorcontainer">
    <if condition="!empty($quote['author'])">
        <div class="author" id="author{$quote['quoteid']}-{$globalcounter}">- {$quote['author']}</div>
    </if>
    <if condition="$quoteitoptions['enablecontext'] AND !empty($quote['context'])">
        <span class="context" id="context{$quote['quoteid']}-{$globalcounter}">({$quote['context']})</span>
    </if>
</div>

<if condition="$_REQUEST['do'] != 'preview' AND !$sidebar">
<div class="quotebottom">
    <if condition="$quoteitoptions['ratings']">
        <span class="stats" id="stats{$quote['quoteid']}-{$globalcounter}">{$vbphrase['total_rating']}: {$quote['rating']} - {$vbphrase['votes']}: {$quote['votes']} - {$vbphrase['average']}: {$quote['average']}</span>
        <span class="ratethis" id="rating{$quote['quoteid']}-{$globalcounter}">{$ratethis}</span>
    </if>

    <span class="inlineimg unapproved" id="unapproved{$quote['quoteid']}-{$globalcounter}">
    <img src="{$stylevar['imgdir_misc']}/moderated.gif" alt="{$vbphrase['unapproved_quote']}" <if condition="$quote['approved']">class="approved" </if>/>
    </span>

</div>
</if>

</td></tr>


Cap'n Steve 03-02-2007 08:27 PM

You'll have to edit clientscript/vbulletin_css/quoteit_main.css.

Chadi 03-02-2007 08:47 PM

Thanks.

Where can I edit quotes? I need to fix some categories.

Great hack

Feedback
- multiple quote addition ability
- more admin functions in backend (edit quotes)
- sort categories alphabetically, automatically
- choose by topic or by author (now, category shows category list only)
- modify category listing option / frame size

Chadi 03-02-2007 09:08 PM

Quote:

Originally Posted by Cap'n Steve (Post 1194392)
You'll have to edit clientscript/vbulletin_css/quoteit_main.css.

Which line/code portion is it? Sorry, not a programmer or coder :)

Cap'n Steve 03-03-2007 12:59 AM

There's an "edit quote" link in the top right of each quote as long as you have given yourself permission to edit quotes. As far as the CSS file goes, I don't know what the specific problem is, but take a look at the .quote, .quotebottom, and .authorcontainer classes.

Quote:

Originally Posted by chadi (Post 1194405)
- multiple quote addition ability

You can already import a text file containing quotes. Do you have another way that would work?

Quote:

Originally Posted by chadi (Post 1194405)
- more admin functions in backend (edit quotes)
- sort categories alphabetically, automatically

Good idea, but how would editing quotes in the admincp work? I guess I could have a place to enter the quote ID to edit it.

Quote:

Originally Posted by chadi (Post 1194405)
- choose by topic or by author (now, category shows category list only)
- modify category listing option / frame size

I'm not sure what you mean by these.

Chadi 03-03-2007 01:10 AM

Thanks for your reply. The ability to select from the category list would be two options, either by the quote topics (which I've done on my end at least) or a 2nd category option (frame), would be the author's name (hence this coincides with the author field that one inputs when adding a new quote)

In regards to editing a quote, that is only seen in the actual location (forum) where the quote is shown. Its not in the quotes.php (quotes manager area) anyway


All times are GMT. The time now is 06:42 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
  • Page Generation 0.02768 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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