vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - "See More" Google Custom Search (Lite) - Increase Adsense revenue! (https://vborg.vbsupport.ru/showthread.php?t=312264)

tpearl5 07-12-2014 05:13 PM

Quote:

Originally Posted by Emad ELsayed (Post 2506475)
Dear
The problem in the Encoding
Encoding my website Windows -1256
When the pressure on the title in Arabic show the previous problem, a place the search text encoding type
But when pressed on the topic title in English hack works without problems

Right, and with the last update I accounted for different encoding.

What do you have in the "See More HTML" and "See More text" fields?

Emad ELsayed 07-12-2014 08:55 PM

1 Attachment(s)
Quote:

Originally Posted by tpearl5 (Post 2506509)
Right, and with the last update I accounted for different encoding.
What do you have in the "See More HTML" and "See More text" fields?

Hello Dear
See attached picture

tpearl5 07-13-2014 12:11 AM

Quote:

Originally Posted by Emad ELsayed (Post 2506539)
Hello Dear
See attached picture

What happens if you change See More HTML to this:
HTML Code:

<hr style='border:none;background-color:#dddddd;height:1px'>
?

Emad ELsayed 07-13-2014 12:46 PM

Quote:

Originally Posted by tpearl5 (Post 2506553)
What happens if you change See More HTML to this:
HTML Code:

<hr style='border:none;background-color:#dddddd;height:1px'>
?

The same problem
Shows the search box type encoding windows-1256

EX:
gsearch.php?cx=partner-pub-0741865614455215:1901073191&cof=FORID%3A10&ie=windows-1256&q=%CA%CD%E3%ED%E1+%DD%ED%CF%ED%E6+%C7%DB%E4%ED%C 9+%CF%ED%DF%ED+%CF%ED%DF%ED+%C7%E4%CA+%D5%CF%ED%DE %ED+%E3%E4+%DE%E4%C7%C9+%D8%ED%E6%D1+%C7%E1%CC%E4% C9+%C8%ED%C8%EC

tpearl5 07-13-2014 05:05 PM

Quote:

Originally Posted by Emad ELsayed (Post 2506594)
The same problem
Shows the search box type encoding windows-1256

EX:
gsearch.php?cx=partner-pub-0741865614455215:1901073191&cof=FORID%3A10&ie=windows-1256&q=%CA%CD%E3%ED%E1+%DD%ED%CF%ED%E6+%C7%DB%E4%ED%C 9+%CF%ED%DF%ED+%CF%ED%DF%ED+%C7%E4%CA+%D5%CF%ED%DE %ED+%E3%E4+%DE%E4%C7%C9+%D8%ED%E6%D1+%C7%E1%CC%E4% C9+%C8%ED%C8%EC

That URL actually looks fine. "q=" is the query. What is the encoding set to in Google Custom Search? (Setup > under Language click Advanced > Search engine encoding)

Also what is in your 'see_more_gsearch' template?

puertoblack2003 07-13-2014 08:09 PM

just got around updating the mod. Something happened it's not working properly.When i search it don't show the results at all.

added:

in the url after the search, it's looking for my admin folder.. not sure why it's asking for it.

Emad ELsayed 07-13-2014 10:54 PM

1 Attachment(s)
Quote:

Originally Posted by tpearl5 (Post 2506613)
That URL actually looks fine. "q=" is the query. What is the encoding set to in Google Custom Search? (Setup > under Language click Advanced > Search engine encoding)
Also what is in your 'see_more_gsearch' template?

Hello Dear
Thank you for help me
Search is encoded UTF-8, See Attachments
Template see_more_gsearch

Quote:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title>
{vb:raw headinclude}
{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}

{vb:raw navbar}

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1">

<script>
(function() {
var cx = '{vb:raw vboptions.google_search_id}';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>

</td>
</tr>
</table>

<vb:if condition="$vboptions['see_more_popular_queries'] == '1'">
<div id="queries"></div>
<script src="https://www.google.com/cse/query_renderer.js"></script>
<script src="https://www.google.com/cse/api/{vb:raw $searchid1}/cse/{vb:raw $searchid2}/queries/js?view={vb:raw $queriesperiod}&callback=(new+PopularQueryRenderer (document.getElementById(%22queries%22))).render"> </script>
</vb:if>

{vb:raw footer}
</body>
</html>

tpearl5 07-14-2014 01:32 AM

Quote:

Originally Posted by puertoblack2003 (Post 2506638)
just got around updating the mod. Something happened it's not working properly.When i search it don't show the results at all.

added:

in the url after the search, it's looking for my admin folder.. not sure why it's asking for it.

Did you install the latest version?

tpearl5 07-14-2014 01:33 AM

Quote:

Originally Posted by Emad ELsayed (Post 2506647)
Hello Dear
Thank you for help me
Search is encoded UTF-8, See Attachments
Template see_more_gsearch

Yeah, try setting it to Arabic (Windows-1256)

The template looks right.

Emad ELsayed 07-14-2014 05:31 AM

Quote:

Originally Posted by tpearl5 (Post 2506662)
Yeah, try setting it to Arabic (Windows-1256)

The template looks right.

I did this
But the same problem
Strangely there is no problem with English titles


All times are GMT. The time now is 11:37 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.01176 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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