News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

TinyPortal

Started by lurkalot, February 12, 2005, 04:43:00 AM

Previous topic - Next topic

IchBin™

Yeah, it's not the SMF version. I removed the tp_query() functions in TP that a lot of block codes used so that we could/should start using SMF's $smcFunc()'s. If you need help, feel free to post your code at TP.net and we'll try to update the code for you in those blocks that don't work.
IchBin™        TinyPortal

Mick.

Quote from: IchBin™ on July 09, 2011, 03:19:19 PM
Yeah, it's not the SMF version. I removed the tp_query() functions in TP that a lot of block codes used so that we could/should start using SMF's $smcFunc()'s. If you need help, feel free to post your code at TP.net and we'll try to update the code for you in those blocks that don't work.

Thanx itch. The only one that didnt work is the smf gallery block.

One more thing tho,   The articles i cant view anymore. Only preview it from admin.

http://www.chevyavalancheclub.com/index.php/page,Resources.html

Blank page. If i go to admin and preview it, it shows fine.

IchBin™

Any errors in your log when you view the articles?
IchBin™        TinyPortal

Mick.

Quote from: IchBin™ on July 10, 2011, 02:52:04 AM
Any errors in your log when you view the articles?


Oh wow, i got a hole bunch.

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadThemeFile: /home/**/public_html/Sources/TPortal.php
Line: 252

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
The database value you're trying to insert does not exist: id_mem
Function: doTPpageFile: /home/***/public_html/Sources/TPortal.php
Line: 704

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: idFile: /home/****/public_html/Sources/TPortal.php
Line: 703

Type of error: Undefined
http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: character_setFile: /home/****/public_html/Sources/TPortal.php
Line: 680

Mick.

Itch. Im all sorted out. Found the culprit.

Again, tp_query() was in one of my 1,000 blocks. lol


So far the 'latest gallery' block and the 'smf tags' block where using tp_query().

Mick.

Quote from: bluedevil on July 10, 2011, 09:25:15 AM
Quote from: IchBin™ on July 10, 2011, 02:52:04 AM
Any errors in your log when you view the articles?


Oh wow, i got a hole bunch.

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
Wrong value type sent to the database. Integer expected. (page)
Function: TP_loadThemeFile: /home/**/public_html/Sources/TPortal.php
Line: 252

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
The database value you're trying to insert does not exist: id_mem
Function: doTPpageFile: /home/***/public_html/Sources/TPortal.php
Line: 704

http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: idFile: /home/****/public_html/Sources/TPortal.php
Line: 703

Type of error: Undefined
http://www.chevyavalancheclub.com/index.php?/page,Chevy%20Avalanche%20Club%20%7C%20Store.html
8: Undefined index: character_setFile: /home/****/public_html/Sources/TPortal.php
Line: 680



I take that back, the errors quoted above are still seen in admin after trying to view any article page publicly.

IchBin™

The first error you posted (page) should be resolved back on page 72 or 73 of this topic IIRC. Make sure you read my post and kindreds post for that error. The other errors I'll have to look at.
IchBin™        TinyPortal

anicolac

Quote from: DeadSpider on June 15, 2011, 05:47:37 PM
Quote from: IchBin™ on June 14, 2011, 09:04:40 PM
Did you install through the package manager? Are you getting this error after the install completed, or during the install? Please give as many details as possible.
Yes, I am trying to install through Package Manager. It uploads fine "The package has been uploaded successfully."

I press [Install Mod] and all test show
1. Extract Tree ./Themes
2. Extract Tree ./Themes
3. Extract Tree ./Sources
4. Extract Tree ./tp-downloads
5. Extract Tree ./tp-images
6. Extract Tree ./tp-files
7. Execute Modification ./index.php Test successful
8. Execute Modification ./Sources/Load.php Test successful
9. Execute Modification ./Sources/Subs.php Test successful
10. Execute Modification ./Sources/Security.php Test successful
11. Execute Modification ./Sources/Errors.php Test successful
12. Execute Modification ./SSI.php Test successful
13. Execute Modification ./Sources/QueryString.php Test successful
14. Execute Modification ./Sources/Subs-Editor.php Test successful
15. Execute Modification ./Sources/Profile.php Test successful
16. Adapt Database SMF2/tp_upgrade.php


Then I press [Install] and get this error

Database Error
Unknown column 'value9' in 'smf_tp_variables'
File: /home/dead/public_html/blightedtouch/Packages/temp/SMF2/tp_upgrade.php
Line: 347

Hola, yo lo he solucionado de una forma sencilla.

- He emulado la versión 2.0 RC4
- He instalado la versión antigua TinyPortal10rc1.zip
- He revertido la emulación a la 2.0
- He actualizado la versión TinyPortal    1.104

todo correcto, Saludos

google translation

Hello, I've solved easily.

- I emulated version 2.0 RC4
- I installed the old version TinyPortal10rc1.zip
- I reverted to 2.0 emulation
- I updated the version TinyPortal 1104

all right, Greetings
www.applemaniacos.es - SMF 2.0.4


unitman

I am having a small problem with the view count on articles.  It doesn't seem to count and stays at zero.  Here is a link to show an example of what I am talking about

hxxp:www.australianonlinepokerleague.com/page/2/ [nonactive]

The code relating to the view count seems right in the TPortal.php , however I am no expert when it comes to these things.

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' , is_numeric($page) ? '{int:page}' : '{string:page}' , ' LIMIT 1',
array('page' => $pag)
);


maybe there is something that I am missing or there is also somewhere else I should be looking.

unitman

Quote from: unitman on July 12, 2011, 08:31:50 AM
hxxp:www.australianonlinepokerleague.com/page/2/ [nonactive]

weird that it would say inactive when the link indeed is active???

IchBin™

#1510
It shows the link as [nonactive] as part of the mod that keeps spammers from posting links here. That should go away after you reach a certain post count. Not sure what the count is though... maybe 10 or 20.

For the views problem, thanks for reporting! Give this a try:
// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}') . ' LIMIT 1',
array('page' => $page)
);
IchBin™        TinyPortal

Alderman

I looked through this thread and found the reports of BBC articles being stretched beyond the forum/theme templates limits or even the browser width. Has there been a resolution for this? I was able to fix a few other bugs along the way thanks to some other posts, just not this one which is a big deal since we do everything in BBC.

unitman

Quote from: IchBin™ on July 12, 2011, 12:48:40 PM

For the views problem, thanks for reporting! Give this a try:
// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' , is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}' , ' LIMIT 1',
array('page' => $page)
);


Thanks for the help.  I updated the code and it didn't seem to do anything.  I have another website and have just realised it is doing the same thing in regards to the views count

agridoc

For Alderman, have a look at adminsettings textarea bug using bbcode editor.

This error seems to be present to some servers only.

   
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF - Greeklish to Greek mod
Δeν αφιερώνω χρόνο για μηνύματα σε greeklish.

anicolac

Hello, one of my forums I have a problem.
when adding an article + BBC, the table is sized

anyone can help me? thank you very much
www.applemaniacos.es - SMF 2.0.4


agridoc

Use the link in the message just before yours.
  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF - Greeklish to Greek mod
Δeν αφιερώνω χρόνο για μηνύματα σε greeklish.

anicolac

#1516
solved, thanks
I resized the bottom corner.

edit

I can resize, but when I saved the article, the problem persists.
:-\
www.applemaniacos.es - SMF 2.0.4


anicolac

Quote from: agridoc on July 13, 2011, 06:30:05 AM
Use the link in the message just before yours.

thanks, I use google translator, very difficult to understand.

will study what you mention.
www.applemaniacos.es - SMF 2.0.4


IchBin™

#1518
unitman, try this code instead. It should work now as I see the error. :)

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? 'id = {int:page}' : 'shortname = {string:page}') . ' LIMIT 1',
array('page' => $page)
);
IchBin™        TinyPortal

unitman

Quote from: IchBin™ on July 13, 2011, 10:38:36 AM
unitman, try this code instead. It should work now as I see the error. :)

// update views
$request =  $smcFunc['db_query']('', '
UPDATE {db_prefix}tp_articles
SET views = views + 1
WHERE ' . (is_numeric($page) ? '{int:page}' : '{string:page}') . ' LIMIT 1',
array('page' => $page)
);


Thanks again but the above did not work again.  Looking at the code, I have actually worked it out and it now works.  I changed {int:page} to  id = {int:page} on the above code you quoted in this very post.

I certainly would not have got it working without your help so very much appreciate that we got it working together.

Advertisement: